package com.znsd.exam.dao;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import com.znsd.entitys.Subjectinfo;

@Repository
public interface SubjectDao {
	public List<Subjectinfo> subjectList(Map<String, Object> map);
	public int getSubjectTotal();
	public int addSucjects(Subjectinfo subject);
	public int delSubject(Integer subjectId);
	public Subjectinfo getSubjectWithId(Integer subjectId);
	public int updateSubject(Subjectinfo subject);
	
	//根据课程ID获取题目
	public List<Subjectinfo> kcSubList(@Param("id")Integer id,@Param("page")Integer page,@Param("rows")Integer rows);
	//根据课程ID获取题目的数量
	public long kcSubCount(@Param("id")Integer id);
	//根据试题ID获取一些字段
	public List<Subjectinfo> ctList(@Param("id")Integer id);
}
